package org.tigr.htc.cmd;

/*
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

import java.net.UnknownHostException;
import java.util.Date;

import org.tigr.antware.shared.command.events.StartEvent;

/**
 * The <b>TkStartEvent</b> class extends CommandEvent and is created and
 * sent to registered command listeners when a Command has
 * started.
 */

public class TkStartEvent extends StartEvent {

	private static final long serialVersionUID = -4037435409679205248L;
	protected int index;

    /**
     * Creates a new <code>TkStartEvent</code> instance. 
     */
    public TkStartEvent() {
        super();
    }

    /**
     * Creates a new <code>TkStartEvent</code> instance.
     * 
     * @param p_source 
     * @param p_commandID
     * @param p_date
     * @param p_message
     * @param p_executeLocation
     */
    public TkStartEvent(Object p_source, long p_commandID, Date p_date, 
		      String p_message, String p_machine, int p_index) {
        super(p_source, p_commandID, p_date, p_message, p_machine);
        index = p_index;
    }

     /**
      * Creates a new <code>TKStartEvent</code> instance.
      * 
      * @param p_source 
      * @param p_commandID
      * @param p_date
      * @param p_message
      */
     public TkStartEvent(Object p_source, long p_commandID, Date p_date, 
		       String p_message, int p_index) throws UnknownHostException {
         super(p_source, p_commandID, p_date, p_message);
         index = p_index;
     }

    /*
     * Start Getters & Setters 
     */

    public int getIndex() {
        return index;
    }

    public void setIndex(int p_index) {
        index = p_index;
    }
}


